package net.cyndeline.components.world

import java.util.UUID
import net.cyndeline.Spell
import net.cyndeline.entitySystem.Component

/**
 * Contains immutable data for each spell.
 */
//TODO Make it for all items
trait SpellRegistryComponent extends Component {
  def spells: Map[UUID, Spell]
}

class SpellRegistry extends SpellRegistryComponent {
  override val spells = Map[UUID, Spell]()
  
  override def copy = {
    // TODO write copy. Or not? Global.
    this
  }
}